package edu.upf.da.p2p.sm;

import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.packet.Packet;

public abstract class P2PMessageListener implements PacketListener {

	public void processPacket(Packet pkt) {
		processMessage(P2PMessage.getMessage(pkt));
	}

	public abstract void processMessage(P2PMessage message);

}
